{% extends 'messages/base.html' %}

{% block title %}
    Update
{% endblock title %}

{% block styles %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="{{ url_for('static', filename='dist/css/style.min.css') }}"> -->
{% endblock %}

{% block body %}

<div class="container">
	<h5>Текст: {{ message.text }}</h5>
    <form action="/update/{{message.id}}" method="POST">
        <div class="mb-3">
        <label for="dsc" class="form-label">Введите ответ</label>
        <input type="text" class="form-control" name="answer" id="dsc">
        </div>
        <button type="submit" class="btn btn-outline-primary update-button">Ответить</button>
        <a type="button" class="btn btn-outline-secondary del-button" href="/messages">Отмена</a>
    </form>
</div>

{% endblock %}
